﻿<Controls:SinacorWindow  
    x:Class="Sinacor.Infra.InputTester.View.SmartClient.InputTesterView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="InputTesterView" 
    Height="300" 
    Width="300"
    xmlns:Local="clr-namespace:InputTester"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"
    xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Validation="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Validation;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Edit="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Edit;assembly=Sinacor.Infra.UI.Controls"
    ModuleId="CCO"
    AutoContentHeight="False"
    AutoContentWidth="False"
    WindowState="Maximized" 
    WindowStartupLocation="CenterScreen"
    ModulePlus="False">
    <Controls:SinacorExpanderContainer x:Name="ExcMain">
        
        <Controls:SinacorExpanderContainer.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Controls:SinacorExpanderContainer.ColumnDefinitions>

        <Controls:SinacorExpanderContainer.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Controls:SinacorExpanderContainer.RowDefinitions>

        <Controls:SinacorExpander x:Name="ExpPropriedades"
                                      Header="Propriedades"
                                      Grid.Row="0"
                                      Grid.Column="0"
                                      IsExpanded="True"
                                      AllowExpand="False">
            <Grid x:Name="Grd">
                    
                    <Controls:SinacorCheckBox x:Name="prpIsFormated" 
		                                      Content="IsFormated" 
		                                      ToolTip="Permite habilitar/desabilitar a auto-formatação do valor sendo digitado"
		                                      IsChecked="{Binding PropertyContainer.IsFormated}"
		                                      HorizontalAlignment="Left"
		                                      VerticalAlignment="Top"
		                                      Margin="0,0,0,0"/>
                    <Controls:SinacorCheckBox x:Name="prpAcceptsNegative"
		                                      Content="AcceptsNegative"
		                                      ToolTip="Indica se o controle aceita a entrada de valores negativos."
		                                      IsChecked="{Binding PropertyContainer.AcceptsNegative}"
		                                      HorizontalAlignment="Left"
		                                      VerticalAlignment="Top"
		                                      Margin="0,25,0,0"
                                              Width="120"/>
                    <Controls:SinacorCheckBox x:Name="prpAutoFill"
		                                      Content="AutoFill"
		                                      ToolTip="Permite habilitar/desabilitar o auto-preenchimento da propriedade no caso do dado atribuído a mesma tenha menos caracteres do que o esperado pelo tipo."
		                                      IsChecked="{Binding PropertyContainer.AutoFill}"
		                                      HorizontalAlignment="Left"
		                                      VerticalAlignment="Top"
											  Margin="0,50,0,0"/>
                <Controls:SinacorCheckBox x:Name="prpIsRequired"
                                          Content="IsRequired"
                                          ToolTip="Permite indicar se o preenchimento é obrigatório."
	                                      IsChecked="{Binding PropertyContainer.IsRequired}"
	                                      HorizontalAlignment="Left"
	                                      VerticalAlignment="Top"
										  Margin="0,75,0,0"
                                          Width="80"
                                          Click="prpIsRequired_Click"/>

                    <Controls:SinacorLabel x:Name="lblIntegers"
		                                   Content="Integers:"
		                                   ToolTip="Indica o número máximo de dígitos que o controle aceita. È de preenchimento obrigatório, caso contrário o controle não aceitará entrada de nenhum digito. Caso tente-se preencher o campo com um número que tenha mais digitos do que o indicado, será disparado uma Exception."
		                                   HorizontalAlignment="Left"
		                                   VerticalAlignment="Top"
										   Margin="100,0,0,0"
                                           Width="80"/>
                    <Controls:SinacorInt32TextBox x:Name="prpIntegers"
		                                          Integers="10"
		                                          HorizontalAlignment="Left"
		                                          VerticalAlignment="Top"
												  Margin="184,0,0,0"
                                                  Width="100"
                                                  Value="{Binding PropertyContainer.Integers}"
                                                  LostFocus="prpIntegers_LostFocus"/>

                    <Controls:SinacorLabel x:Name="lblDecimals"
		                                   Content="Decimals:"
		                                   ToolTip="Indica o número máximo de dígitos decimais que o controle aceita. È de preenchimento obrigatório, caso contrário o controle não aceitará entrada de nenhum digito. Caso tente-se preencher o campo com um número que tenha mais digitos decimais do que o indicado, será disparado uma Exception."
		                                   HorizontalAlignment="Left"
		                                   VerticalAlignment="Top"
										   Margin="288,0,0,0"
                                           Width="60"/>
                    <Controls:SinacorInt32TextBox x:Name="prpDecimals"
		                                          Integers="10"
		                                          HorizontalAlignment="Left"
		                                          VerticalAlignment="Top"
												  Margin="352,0,0,0"
												  Width="100"
                                                  Value="{Binding PropertyContainer.Decimals}"/>

                    <Controls:SinacorLabel x:Name="lblMaxValue"
		                                   Content="MaxValue:"
		                                   ToolTip="Propriedade que indica o valor máximo que o controle pode receber. Esta propriedade é utilizada na validação do dado digitado."
		                                   HorizontalAlignment="Left"
		                                   VerticalAlignment="Top"
										   Margin="456,0,0,0"
                                           Width="60"/>
                    <Controls:SinacorInt64TextBox x:Name="prpMaxValue"
		                                          HorizontalAlignment="Left"
		                                          VerticalAlignment="Top"
                                                  Width="100"
												  Margin="520,0,0,0"
                                                  Value="{Binding PropertyContainer.MaxValue}"
                                                  Integers="{Binding PropertyContainer.Integers}"
                                                  AcceptsNegative="{Binding PropertyContainer.AcceptsNegative}"
                                                  LostFocus="prpMaxValue_LostFocus"/>

                    <Controls:SinacorLabel x:Name="lblMinValue"
		                                   Content="MinValue:"
		                                   ToolTip="Propriedade que indica o valor mínimo que o controle pode receber. Esta propriedade é utilizada na validação do dado digitado."
		                                   HorizontalAlignment="Left"
		                                   VerticalAlignment="Top"
										   Margin="620,0,0,0"
                                           Width="60"/>
                    <Controls:SinacorInt64TextBox x:Name="prpMinValue"
		                                          HorizontalAlignment="Left"
		                                          VerticalAlignment="Top"
												  Margin="684,0,0,0"
                                                  Width="100"
                                                  Integers="{Binding PropertyContainer.Integers}"
                                                  Value="{Binding PropertyContainer.MinValue}"
                                                  AcceptsNegative="{Binding PropertyContainer.AcceptsNegative}"
                                                  LostFocus="prpMinValue_LostFocus"/>

                <Controls:SinacorButton x:Name="btnLimpa"
                                            HorizontalAlignment="Left"
		                                    VerticalAlignment="Top"
											Margin="792,0,0,0"
                                            Icon="IconButtonUndoAll"
                                            ToolTip="Limpar"
                                            Click="btnLimpa_Click"/>
            </Grid>
            </Controls:SinacorExpander>


        <Controls:SinacorExpander x:Name="ExpControles"
                                      Header="Controles"
                                      Grid.Row="1"
                                      Grid.Column="0"
                                      IsExpanded="True"
                                      AllowExpand="False">

            <Grid x:Name="GrdControles">
                
                <Controls:SinacorGroupBox x:Name="GrpDocTxt"
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Width="420"
                                          Height="230">
                    <Grid>
                        <Controls:SinacorLabel x:Name="lblCepTextBox"
	                                           Content="SinacorCepTextBox:"
	                                           HorizontalAlignment="Left"
	                                           VerticalAlignment="Top"
									           Margin="4,0,0,0"
                                               Width="190"/>
                        <Controls:SinacorCepTextBox x:Name="CepTextBox"
	                                                HorizontalAlignment="Left"
	                                                VerticalAlignment="Top"
                                                    Width="120"
											        Margin="198,0,0,0"
                                                    IsRequired="{Binding PropertyContainer.IsRequired}"/>

                        <Controls:SinacorLabel x:Name="lblCnpjTextBox"
	                                           Content="SinacorCnpjTextBox:"
	                                           HorizontalAlignment="Left"
	                                           VerticalAlignment="Top"
									           Margin="4,25,0,0"
                                               Width="190"/>
                        <Controls:SinacorCnpjTextBox x:Name="CnpjTextBox"
	                                                 HorizontalAlignment="Left"
	                                                 VerticalAlignment="Top"
											         Margin="198,25,0,0"
                                                     Width="120"
                                                     AutoFill="{Binding PropertyContainer.AutoFill}"
                                                     IsRequired="{Binding PropertyContainer.IsRequired}"/>

                        <Controls:SinacorLabel x:Name="lblCpfTextBox"
	                                           Content="SinacorCpfTextBox:"
	                                           HorizontalAlignment="Left"
	                                           VerticalAlignment="Top"
									           Margin="4,50,0,0"
                                               Width="190"/>
                        <Controls:SinacorCpfTextBox x:Name="CpfTextBox"
	                                                HorizontalAlignment="Left"
	                                                VerticalAlignment="Top"
											        Margin="198,50,0,0"
                                                    Width="120"
                                                    AutoFill="{Binding PropertyContainer.AutoFill}"
                                                    IsRequired="{Binding PropertyContainer.IsRequired}"/>
  
                        <Controls:SinacorLabel x:Name="lblCvmTextBox"
		                                       Content="SinacorCvmTextBox:"
		                                       HorizontalAlignment="Left"
		                                       VerticalAlignment="Top"
										       Margin="4,75,0,0"
                                               Width="190"/>
                        <Controls:SinacorCvmTextBox x:Name="CvmTextBox"
	                                                HorizontalAlignment="Left"
	                                                VerticalAlignment="Top"
											        Margin="198,75,0,0"
                                                    Width="120"
                                                    AutoFill="{Binding PropertyContainer.AutoFill}"
                                                    IsRequired="{Binding PropertyContainer.IsRequired}"/>
                        
                        <Controls:SinacorLabel x:Name="lblEmailTextBox"
		                                       Content="SinacorEmailTextBox:"
		                                       HorizontalAlignment="Left"
		                                       VerticalAlignment="Top"
										       Margin="4,100,0,0"
                                               Width="190"/>
                        <Controls:SinacorEmailTextBox x:Name="EmailTextBox"
	                                                  HorizontalAlignment="Left"
	                                                  VerticalAlignment="Top"
											          Margin="198,100,0,0"
                                                      Width="120"
                                                      IsRequired="{Binding PropertyContainer.IsRequired}"/>

                        <Controls:SinacorLabel x:Name="lblInvestidorEstrangeiroTextBox"
		                                       Content="SinacorInvestidorEstrangeiroTextBox:"
		                                       HorizontalAlignment="Left"
		                                       VerticalAlignment="Top"
										       Margin="4,125,0,0"
                                               Width="190"/>
                        <Controls:SinacorInvestidorEstrangeiroTextBox x:Name="InvestidorEstrangeiroTextBox"
	                                                                  HorizontalAlignment="Left"
	                                                                  VerticalAlignment="Top"
															          Margin="198,125,0,0"
                                                                      AutoFill="{Binding PropertyContainer.AutoFill}"
                                                                      IsRequired="{Binding PropertyContainer.IsRequired}"/>

                        <Controls:SinacorLabel x:Name="lblNyseTextBox"
	                                           Content="SinacorNyseTextBox:"
	                                           HorizontalAlignment="Left"
	                                           VerticalAlignment="Top"
									           Margin="4,150,0,0"
                                               Width="190"/>
                        <Controls:SinacorNyseTextBox x:Name="NyseTextBox"
	                                                 HorizontalAlignment="Left"
	                                                 VerticalAlignment="Top"
											         Margin="198,150,0,0"
                                                     Width="120"
                                                     AutoFill="{Binding PropertyContainer.AutoFill}"
                                                     IsRequired="{Binding PropertyContainer.IsRequired}"/>
                        </Grid>
                    </Controls:SinacorGroupBox>

                <Controls:SinacorGroupBox x:Name="GrpIntTxt"
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Width="400"
                                          Height="180"
                                          Margin="424,0,0,0">
                    <Grid>
                        <Controls:SinacorLabel x:Name="lblTextBox"
		                                       Content="SinacorTextBox:"
		                                       HorizontalAlignment="Left"
		                                       VerticalAlignment="Top"
										       Margin="4,0,0,0"
                                               Width="130"/>
                        <Controls:SinacorTextBox x:Name="TextBox"
                                                 HorizontalAlignment="Left"
                                                 VerticalAlignment="Top"
									             Margin="138,0,0,0"
                                                 Width="200"
                                                 IsRequired="{Binding PropertyContainer.IsRequired}"/>

                        <Controls:SinacorLabel x:Name="lblInt16TextBox"
                                               Content="SinacorInt16TextBox:"
                                               HorizontalAlignment="Left"
                                               VerticalAlignment="Top"
								               Margin="4,25,0,0"
                                               Width="130"/>
                        <Controls:SinacorInt16TextBox x:Name="Int16TextBox"
                                              HorizontalAlignment="Left"
                                              VerticalAlignment="Top"
										      Margin="138,25,0,0"
                                              Integers="{Binding PropertyContainer.Integers}"
                                              IsFormated="{Binding PropertyContainer.IsFormated}"
                                              AcceptsNegative="{Binding PropertyContainer.AcceptsNegative}"
                                              MaxValue="{Binding PropertyContainer.MaxValue}"
                                              MinValue="{Binding PropertyContainer.MinValue}"
                                              IsRequired="{Binding PropertyContainer.IsRequired}"
                                              Width="200"/>

                        <Controls:SinacorLabel x:Name="lblInt32TextBox"
                                               Content="SinacorInt32TextBox:"
                                               HorizontalAlignment="Left"
                                               VerticalAlignment="Top"
								               Margin="4,50,0,0"
                                               Width="130"/>
                        <Controls:SinacorInt32TextBox x:Name="Int32TextBox"
                                                      HorizontalAlignment="Left"
                                                      VerticalAlignment="Top"
										              Margin="138,50,0,0"
                                                      Integers="{Binding PropertyContainer.Integers}"
                                                      IsFormated="{Binding PropertyContainer.IsFormated}" 
                                                      AcceptsNegative="{Binding PropertyContainer.AcceptsNegative}"
                                                      MaxValue="{Binding PropertyContainer.MaxValue}"
                                                      MinValue="{Binding PropertyContainer.MinValue}"
                                                      IsRequired="{Binding PropertyContainer.IsRequired}"
                                                      Width="200"/>

                        <Controls:SinacorLabel x:Name="lblInt64TextBox"
                                               Content="SinacorInt64TextBox:"
                                               HorizontalAlignment="Left"
                                               VerticalAlignment="Top"
								               Margin="4,75,0,0"
                                               Width="130"/>
                        <Controls:SinacorInt64TextBox x:Name="Int64TextBox"
                                                      HorizontalAlignment="Left"
                                                      VerticalAlignment="Top"
										              Margin="138,75,0,0"
                                                      Integers="{Binding PropertyContainer.Integers}"
                                                      IsFormated="{Binding PropertyContainer.IsFormated}"
                                                      AcceptsNegative="{Binding PropertyContainer.AcceptsNegative}"
                                                      MaxValue="{Binding PropertyContainer.MaxValue}"
                                                      MinValue="{Binding PropertyContainer.MinValue}"
                                                      IsRequired="{Binding PropertyContainer.IsRequired}"
                                                      Width="200"/>

                        <Controls:SinacorLabel x:Name="lblDoubleTextBox"
		                                       Content="SinacorDoubleTextBox:"
		                                       HorizontalAlignment="Left"
		                                       VerticalAlignment="Top"
										       Margin="4,100,0,0"
                                               Width="130"/>
                        <Controls:SinacorDoubleTextBox x:Name="DoubleTextBox"
                                                       HorizontalAlignment="Left"
                                                       VerticalAlignment="Top"
										               Margin="138,100,0,0"
                                                       Integers="{Binding PropertyContainer.Integers}"
                                                       Decimals="{Binding PropertyContainer.Decimals}"
                                                       IsFormated="{Binding PropertyContainer.IsFormated}"
                                                       AcceptsNegative="{Binding PropertyContainer.AcceptsNegative}"
                                                       MaxValue="{Binding PropertyContainer.MaxValue}"
                                                       MinValue="{Binding PropertyContainer.MinValue}"
                                                       IsRequired="{Binding PropertyContainer.IsRequired}"
                                                       Width="200"/>

                        <Controls:SinacorLabel x:Name="lblDecimalTextBox"
	                                           Content="SinacorDecimalTextBox:"
	                                           HorizontalAlignment="Left"
	                                           VerticalAlignment="Top"
									           Margin="4,125,0,0"
                                               Width="130"/>
                        <Controls:SinacorDecimalTextBox x:Name="DecimalTextBox"
                                                        HorizontalAlignment="Left"
                                                        VerticalAlignment="Top"
											            Margin="138,125,0,0"
                                                        Integers="{Binding PropertyContainer.Integers}"
                                                        Decimals="{Binding PropertyContainer.Decimals}"
                                                        IsFormated="{Binding PropertyContainer.IsFormated}"
                                                        AcceptsNegative="{Binding PropertyContainer.AcceptsNegative}"
                                                        MaxValue="{Binding PropertyContainer.MaxValue}"
                                                        MinValue="{Binding PropertyContainer.MinValue}"
                                                        IsRequired="{Binding PropertyContainer.IsRequired}"
                                                        Width="200"/>
                        </Grid>
                    </Controls:SinacorGroupBox>

                <Controls:SinacorGroupBox x:Name="GrpDateTxt"
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Width="300"
                                          Height="80"
                                          Margin="828,0,0,0">
                    <Grid>

                        <Controls:SinacorLabel x:Name="lblDatePicker"
                                               Content="SinacorDatePicker:"
                                               HorizontalAlignment="Left"
                                               VerticalAlignment="Top"
								               Margin="4,0,0,0"
                                               Width="100"/>
                        <Controls:SinacorDatePicker x:Name="DatePicker"
                                                    HorizontalAlignment="Left"
                                                    VerticalAlignment="Top"
										            Margin="108,0,0,0"
                                                    IsRequired="{Binding PropertyContainer.IsRequired}"/>

                        <Controls:SinacorLabel x:Name="lblTimePicker"
                                               Content="SinacorTimePicker:"
                                               HorizontalAlignment="Left"
                                               VerticalAlignment="Top"
								               Margin="4,25,0,0"
                                               Width="100"/>
                        <Controls:SinacorTimePicker x:Name="TimePicker"
                                                    HorizontalAlignment="Left"
                                                    VerticalAlignment="Top"
										            Margin="108,25,0,0"
                                                    IsRequired="{Binding PropertyContainer.IsRequired}"/>
                    </Grid>
                </Controls:SinacorGroupBox>

                <Controls:SinacorGroupBox x:Name="GrpIdentifica"
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Width="420"
                                          Height="150"
                                          Margin="0,234,0,0"
                                          Header="SinacorIdentificaInvestidor">
                    <Grid x:Name="GrdIdentifica">
                        
                        <Controls:SinacorCheckBox x:Name="prpShowCPF"
                                                  Content="ShowCPF"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  IsChecked="{Binding PropertyContainer.ShowCPF}"
                                                  Margin="0,0,0,0"
                                                  Click="ChkShow_Click"/>
                        
                        <Controls:SinacorCheckBox x:Name="prpShowCNPJ"
                                                  Content="ShowCNPJ"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  IsChecked="{Binding PropertyContainer.ShowCNPJ}"
                                                  Margin="0,25,0,0"
                                                  Click="ChkShow_Click"/>
                        
                        <Controls:SinacorCheckBox x:Name="prpShowCVM"
                                                  Content="ShowCVM"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  IsChecked="{Binding PropertyContainer.ShowCVM}"
                                                  Margin="0,50,0,0"
                                                  Click="ChkShow_Click"/>
                        
                        <Controls:SinacorCheckBox x:Name="prpShowClienteEstrangeiro"
                                                  Content="ShowClienteEstrangeiro"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  IsChecked="{Binding PropertyContainer.ShowClienteEstrangeiro}"
                                                  Margin="0,75,0,0"
                                                  Width="100" 
                                                  Click="ChkShow_Click"/>

                        <Controls:SinacorCheckBox x:Name="prpShowOutros"
                                                  Content="ShowOutros"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  IsChecked="{Binding PropertyContainer.ShowOutros}"
                                                  Margin="0,100,0,0"
                                                  Click="ChkShow_Click"/>
                    </Grid>
                </Controls:SinacorGroupBox>

            </Grid>
</Controls:SinacorExpander>
    </Controls:SinacorExpanderContainer>
</Controls:SinacorWindow>
